package cn.zc.curriculum.service.service;


import cn.tools.core.VO.PageVO;
import cn.zc.curriculum.entity.CurriculumMenu;
import cn.zc.curriculum.entity.Dto.CurriculumMenuDto;
import cn.zc.curriculum.entity.VO.CurriculumMenuVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程目录 服务类
 * </p>
 *
 * @author keno
 * @since 2022-02-14
 */
public interface CurriculumMenuService extends IService<CurriculumMenu> {

    /**
     * 根据课程类查询目录
     * @param pageVO
     * @param classifyId
     * @return
     */
    List<CurriculumMenuDto> findCurriculumMenuByClassify(PageVO pageVO, String classifyId);

    /**
     * 修改目录
     * @param curriculumMenuDto
     */
    void updateCurriculumMenu(CurriculumMenuDto curriculumMenuDto);

    /**
     * 删除目录及目录对应题中间表
     * @param menuId
     */
    void deleteCurriculumMenu(String menuId);

    /**
     * 创建目录
     * @param curriculumMenuDto
     * @return
     */
    CurriculumMenuDto createCurriculumMenu(CurriculumMenuDto curriculumMenuDto);


    /**
     * 查询课程下的所有目录视频与分数
     * @param pageVO
     * @param classifyId
     * @return
     */
    List<CurriculumMenuVO> findAllCurriculumMenuByClassify(PageVO pageVO, String classifyId);
}
